package com.example;

import com.example.observer.Observer;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * 监听贩卖机的变化的观察者
 */
public class Monitor implements Observer, Remote {

    @Override
    public void update(MachineInfo info) throws RemoteException {
        System.out.println(info);
    }

    public Monitor() throws RemoteException {
    }
}
